glrenderer: Emit more useful error messages
authorBenjamin Otte <otte@redhat.com>
Thu, 3 Dec 2020 04:33:30 +0000 (05:33 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 3 Dec 2020 12:07:17 +0000 (13:07 +0100)
commitc907ad83b0f5d7b32a04e9cbd0949e8da0143bf6
tree2972d723a5f0d0efbf9a70625ac91de3f96d55c4
parentf8ee4cfea5d5ed1b586caac7f30157d8977cf3a3
glrenderer: Emit more useful error messages

Catch the error when it happens, so that we can emit a specific and more
helpful error message.

Also verify that all branches in the code now do indeed set a proper
GError when they fail, so that the final catch-all is no longer needed.
Instead, assert that the error is set so that we catch future code
additions early that do not set the GError.
gsk/gl/gskglrenderer.c